var Said = Window.extend({
	mass: null,
	ctor:function (parent, flow, tag) {
		this._super(parent, flow, tag);
	},
	initSp:function (){
		var bg = new Button(this.menu,
				d_z_index, TAG_DEFAULT,
				"#said/said_bg.png", "#said/said_bg.png",
				this.eventMenuCallback,this);
		bg.setPosition(width * 0.5, height * 0.5);
		
		this.show = new cc.LabelTTF("0.0023g",fontName,30);
		this.show.setColor(cc.color(0,0,0,255));
		this.show.setPosition(295, 162);
		bg.addChild(this.show);
		this.show.setVisible(false);
		
		// 打印
		var print = new Button(this.menu,
				d_z_index, TAG_BUTTON_PRINT,
				"#said/print.png", "#said/print.png",
				this.eventMenuCallback,this);
		print.setPosition(512, 335);
		// 积分
		var point = new Button(this.menu,
				d_z_index, TAG_BUTTON_POINT,
				"#said/point.png", "#said/point.png",
				this.eventMenuCallback,this);
		point.left(print, 8);
		// 稳定度
		var stable = new Button(this.menu,
				d_z_index, TAG_BUTTON_STABLE,
				"#said/stable.png", "#said/stable.png",
				this.eventMenuCallback,this);
		stable.left(point, 8);
		// 计数
		var count = new Button(this.menu,
				d_z_index, TAG_BUTTON_COUNT,
				"#said/count.png", "#said/count.png",
				this.eventMenuCallback,this);
		count.right(print, 8);
		// 单位转换
		var change = new Button(this.menu,
				d_z_index, TAG_BUTTON_CHANGE,
				"#said/change.png", "#said/change.png",
				this.eventMenuCallback,this);
		change.right(count, 8);
		// 开机
		var boot = new Button(this.menu,
				d_z_index, TAG_BUTTON_BOOT,
				"#said/boot.png", "#said/boot.png",
				this.eventMenuCallback,this);
		boot.setPosition(338, 400);
		// 关机
		var shutdown = new Button(this.menu,
				d_z_index, TAG_BUTTON_SHUTDOWN,
				"#said/shutdown.png", "#said/shutdown.png",
				this.eventMenuCallback,this);
		shutdown.down(boot);
		// 校准
		var align = new Button(this.menu,
				d_z_index, TAG_BUTTON_ALIGN,
				"#said/align.png", "#said/align.png",
				this.eventMenuCallback,this);
		align.setPosition(674, 400);
		// 置零
		var zero = new Button(this.menu,
				d_z_index, TAG_BUTTON_ZERO,
				"#said/zero.png", "#said/zero.png",
				this.eventMenuCallback,this);
		zero.down(align);
	},
	say:function(str){
		this.show.setString(str);
	},
	callbackSp:function(pSender){
		switch (pSender.getTag()){
			case TAG_BUTTON_BOOT:
				this.show.setVisible(true);
				this.flow.next();
				break;
			case TAG_BUTTON_ZERO:
				this.say("0.0000g");
				this.flow.next();	
				break;
		}
	}
})